package com.lianxian.xindong.login.di.module;

import androidx.fragment.app.FragmentActivity;

import com.hxb.library.di.scope.ActivityScope;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;

import com.lianxian.xindong.login.mvp.contract.OtherStepOneContract;
import com.lianxian.xindong.login.mvp.model.OtherStepOneModel;
import com.tbruyelle.rxpermissions2.RxPermissions;


/**
 * @作者：hexingbo
 * @时间：07/04/2023
 * @描述：
 */
@Module
public abstract class OtherStepOneModule {

    @Binds
    abstract OtherStepOneContract.Model bindOtherStepOneModel(OtherStepOneModel model);

    @ActivityScope
    @Provides
    static RxPermissions provideRxPermissions(OtherStepOneContract.View view) {
        return new RxPermissions((FragmentActivity) view.getActivity());
    }



}